package com.dyh.quickdemo.bizDemo.wmsUrls;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Configuration
public class WmsConfiguration {

	@Bean("wmsUrlBean")
	@ConfigurationProperties(prefix = "wms.client")
	public WmsUrlBean getWmsUrlConfiguration() {
		return new WmsUrlBean();
	}

	public static Map<Integer,String> urlId2WmsName = new HashMap<>();
	static {
		urlId2WmsName.put(1,"wms");
		urlId2WmsName.put(2,"wmswai1");
		urlId2WmsName.put(3,"wmswai2");
		urlId2WmsName.put(4,"wmswai3");
		urlId2WmsName.put(5,"wms.guanyc");
	}
}